home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gwu / predef.h < prev    next >
Text File  |  1996-01-30  |  5KB  |  168 lines

  1. /*
  2.  * Copyright (C) 1985-1992  New York University
  3.  * 
  4.  * This file is part of the Ada/Ed-C system.  See the Ada/Ed README file for
  5.  * warranty (none) and distribution info and also the GNU General Public
  6.  * License for more details.
  7.  
  8.  */
  9.  
  10. /* Constants For PRDEF Operations */
  11.  
  12. /*  The values of these constants are arranged to make the tests in the routine
  13.  *  get_file_argument_or_default work correctly as follows for the cases where
  14.  *  there are pairs of routines, one with a file argument and one using the
  15.  *  default file:
  16.  *
  17.  *    For all ops where a file is given, 0 <= operation <= P_P_FILE
  18.  *    For all ops using the default input file, P_P_FILE < operation <= P_P_IN
  19.  *    For all ops using the default output file, P_P_IN < operation <= P_P_OUT
  20.  *    For all ops not in this category, P_P_OUT < operation
  21.  */
  22.  
  23. /* Operations where a file argument is given */
  24.  
  25. #define P_SET_LINE_LENGTH_FILE      1
  26. #define P_SET_PAGE_LENGTH_FILE      2
  27. #define P_LINE_LENGTH_FILE      3
  28. #define P_PAGE_LENGTH_FILE      4
  29. #define P_NEW_LINE_FILE       5
  30. #define P_SKIP_LINE_FILE      6
  31. #define P_END_OF_LINE_FILE      7
  32. #define P_NEW_PAGE_FILE       8
  33. #define P_SKIP_PAGE_FILE      9
  34. #define P_END_OF_PAGE_FILE     10
  35. #define P_TIO_END_OF_FILE_FILE     11
  36. #define P_SET_COL_FILE         12
  37. #define P_SET_LINE_FILE      13
  38. #define P_COL_FILE         14
  39. #define P_LINE_FILE         15
  40. #define P_PAGE_FILE         16
  41. #define P_GET_CHAR_FILE_ITEM     17
  42. #define P_PUT_CHAR_FILE_ITEM     18
  43. #define P_GET_STRING_FILE_ITEM     19
  44. #define P_PUT_STRING_FILE_ITEM     20
  45. #define P_GET_LINE_FILE      21
  46. #define P_PUT_LINE_FILE      22
  47. #define P_GET_INTEGER_FILE_ITEM  23
  48. #define P_PUT_INTEGER_FILE_ITEM  24
  49. #define P_PUT_INTEGER_STRING     25
  50. #define P_GET_FLOAT_FILE_ITEM     26
  51. #define P_PUT_FLOAT_FILE_ITEM     27
  52. #define P_GET_FIXED_FILE_ITEM     28
  53. #define P_PUT_FIXED_FILE_ITEM     29
  54. #define P_GET_ENUM_FILE_ITEM     30
  55. #define P_PUT_ENUM_FILE_ITEM     31
  56. #define P_P_FILE         31
  57.  
  58. /* Operations using default input file */
  59.  
  60. #define P_GET_CHAR_ITEM      32
  61. #define P_GET_STRING_ITEM     33
  62. #define P_GET_LINE         34
  63. #define P_GET_INTEGER_ITEM     35
  64. #define P_GET_INTEGER_STRING     36
  65. #define P_GET_FLOAT_ITEM     37
  66. #define P_GET_FLOAT_STRING     38
  67. #define P_GET_FIXED_ITEM     39
  68. #define P_GET_FIXED_STRING     40
  69. #define P_GET_ENUM_ITEM      41
  70. #define P_GET_ENUM_STRING     42
  71. #define P_SKIP_LINE         43
  72. #define P_END_OF_LINE         44
  73. #define P_SKIP_PAGE         45
  74. #define P_END_OF_PAGE         46
  75. #define P_TIO_END_OF_FILE     47
  76. #define P_P_IN             47
  77.  
  78. /* Operations using default output file */
  79.  
  80. #define P_SET_LINE_LENGTH     48
  81. #define P_SET_PAGE_LENGTH     49
  82. #define P_LINE_LENGTH         50
  83. #define P_PAGE_LENGTH         51
  84. #define P_NEW_LINE         52
  85. #define P_NEW_PAGE         53
  86. #define P_SET_COL         54
  87. #define P_SET_LINE         55
  88. #define P_COL             56
  89. #define P_LINE             57
  90. #define P_PAGE             58
  91. #define P_PUT_CHAR_ITEM      59
  92. #define P_PUT_STRING_ITEM     60
  93. #define P_PUT_LINE         61
  94. #define P_PUT_INTEGER_ITEM     62
  95. #define P_PUT_FLOAT_ITEM     63
  96. #define P_PUT_FLOAT_STRING     64
  97. #define P_PUT_FIXED_ITEM     65
  98. #define P_PUT_FIXED_STRING     66
  99. #define P_PUT_ENUM_ITEM      67
  100. #define P_PUT_ENUM_STRING     68
  101. #define P_P_OUT          68
  102.  
  103. /* Other operations */
  104.  
  105. #define P_TIO_CREATE         69
  106. #define P_TIO_OPEN         70
  107. #define P_TIO_CLOSE         71
  108. #define P_TIO_DELETE         72
  109. #define P_TIO_RESET         73
  110. #define P_TIO_RESET_MODE     74
  111. #define P_TIO_MODE         75
  112. #define P_TIO_NAME         76
  113. #define P_TIO_FORM         77
  114. #define P_TIO_IS_OPEN         78
  115. #define P_SET_INPUT         79
  116. #define P_SET_OUTPUT         80
  117. #define P_STANDARD_INPUT     81
  118. #define P_STANDARD_OUTPUT     82
  119. #define P_CURRENT_INPUT      83
  120. #define P_CURRENT_OUTPUT     84
  121. #define P_SIO_CREATE         85
  122. #define P_SIO_OPEN         86
  123. #define P_SIO_CLOSE         87
  124. #define P_SIO_DELETE         88
  125. #define P_SIO_RESET         89
  126. #define P_SIO_RESET_MODE     90
  127. #define P_SIO_MODE         91
  128. #define P_SIO_NAME         92
  129. #define P_SIO_FORM         93
  130. #define P_SIO_IS_OPEN         94
  131. #define P_SIO_READ         95
  132. #define P_SIO_WRITE         96
  133. #define P_SIO_END_OF_FILE     97
  134. #define P_DIO_CREATE         98
  135. #define P_DIO_OPEN         99
  136. #define P_DIO_CLOSE        100
  137. #define P_DIO_DELETE        101
  138. #define P_DIO_RESET        102
  139. #define P_DIO_RESET_MODE    103
  140. #define P_DIO_MODE        104
  141. #define P_DIO_NAME        105
  142. #define P_DIO_FORM        106
  143. #define P_DIO_IS_OPEN        107
  144. #define P_DIO_READ        108
  145. #define P_DIO_READ_FROM     109
  146. #define P_DIO_WRITE        110
  147. #define P_DIO_WRITE_TO        111
  148. #define P_DIO_SET_INDEX     112
  149. #define P_DIO_INDEX        113
  150. #define P_DIO_SIZE        114
  151. #define P_DIO_END_OF_FILE    115
  152. #define P_CLOCK         116
  153. #define P_YEAR            117
  154. #define P_MONTH         118
  155. #define P_DAY            119
  156. #define P_SECONDS        120
  157. #define P_SPLIT         121
  158. #define P_TIME_OF        122
  159. #define P_ADD_TIME_DUR        123
  160. #define P_ADD_DUR_TIME        124
  161. #define P_SUB_TIME_DUR        125
  162. #define P_SUB_TIME_TIME     126
  163. #define P_LT_TIME        127
  164. #define P_LE_TIME        128
  165. #define P_GT_TIME        129
  166. #define P_GE_TIME        130
  167.  
  168.